a4c305c127848823ed4e14bf55c2ff86b20f61d6,optaplanner-core/src/main/java/org/optaplanner/core/api/score/buildin/hardmediumsoftbigdecimal/HardMediumSoftBigDecimalScore.java,HardMediumSoftBigDecimalScore,equals,#Object#,214
Before Change
return initScore == other.getInitScore()
&& hardScore.equals(other.getHardScore())
&& mediumScore.equals(other.getMediumScore())
&& softScore.equals(other.getSoftScore());
} else {
return false;
}
After Change
return initScore == other.getInitScore()
&& hardScore.stripTrailingZeros().equals(other.getHardScore().stripTrailingZeros())
&& mediumScore.stripTrailingZeros().equals(other.getMediumScore().stripTrailingZeros())
&& softScore.stripTrailingZeros().equals(other.getSoftScore().stripTrailingZeros());
} else {
return false;
}